package com.start.admin.vo;

import com.start.admin.entity.StartSysUserManageDept;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class StartSysUserManageDeptVo extends StartSysUserManageDept {
    @Schema(name = "用户名")
    private String userName;
    @Schema(name = "用户真实姓名")
    private String userRealName;
    @Schema(name = "用户昵称")
    private String userNickName;
    @Schema(name = "用户体系类型")
    private String startUserType;

    public String getUserFinalName() {
        if (StringUtils.isNotBlank(userNickName)) {
            return userNickName;
        }
        if (StringUtils.isNotBlank(userRealName)) {
            return userRealName;
        }
        return userName;
    }


}
